﻿namespace JobsTest
{
    using FluentScheduler;
    using System;
    using static Serilog.Log;

    /// <summary>
    /// 类型化的Job，继承自IJob，需要有无参默认构造函数
    /// IDisposable继承IDisposable实现自我销毁
    /// </summary>
    public class DisposableJob : IJob, IDisposable
    {
        public void Execute() => Logger.Information("Disposable: executing");

        public void Dispose() => Logger.Information("Disposable: disposed");
    }
}
